package com.chuanjiabao.wisdom.ui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.RelativeLayout;

/**
 * Created by 86178 on 2019/7/24.
 * author mogen
 * 用心，成就一切。
 */

public class LoveRelativeLayout extends RelativeLayout {


    public LoveRelativeLayout(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    public LoveRelativeLayout(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public LoveRelativeLayout(Context context) {
        super(context);
    }

    @Override
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        switch (ev.getAction()) {
            case MotionEvent.ACTION_DOWN:
                return false;
            case MotionEvent.ACTION_MOVE:
                return false;
            case MotionEvent.ACTION_UP:
                return true;
            default:
                break;
        }
        return false;
    }

}
